﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.Services
{
    public class ModifyPasswordDto
    {
        [Display(Name = "原密码")]
        [MinLength(6, ErrorMessage = "密码长度至少六位！")]
        public string OldPassword { get; set; }

        [Display(Name = "新密码")]
        [MinLength(6,ErrorMessage="密码长度至少六位！")]
        public string NewPassword { get; set; }

        [Display(Name = "重复新密码")]
        [MinLength(6, ErrorMessage = "密码长度至少六位！")]
        [Compare("NewPassword",ErrorMessage="两个新密码不一样！")]
        public string NewSurePassword { get; set; }

    }
}
